package com.qiall.boot.userservice.data.mapper;

import com.qiall.boot.userservice.data.entity.RoleInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface RoleMapper {
    void insert(RoleInfo RoleInfo);
    void update(RoleInfo roleInfo);
    Integer countByRoleName(@Param("roleName") String roleName);
    RoleInfo selectByRoleName(@Param("roleName") String roleName);
    List<RoleInfo> selectAll();
    RoleInfo select(@Param("id")Integer id);
    void delete(@Param("id")Integer id);
}
